package api

import (
	h "dkai/handler"
	m "dkai/model"
	"github.com/gin-gonic/gin"
	"log"
)

func Bot(context *gin.Context) {
	hookModel := m.DKAiHookModel{}
	_ = context.BindJSON(&hookModel)
	log.Printf("DK talk:  %s\n", hookModel.Text.Content)

	h.DkCallback(hookModel.Text.Content)
}
